#pragma once

#include <string_view>
#include <string>
#include <unordered_map>
#include <vector>

class NameDB
{
public:
	NameDB(std::string_view nameFile);
	int getNameRank(std::string_view name) const;
	int getAbsoluteNumber(std::string_view name) const;
private:
  using PairPoint=std::pair<const std::string, int>;
	std::unordered_map<std::string, int> mNames;
  std::vector<PairPoint *> mVector;
};
